package com.usian.search.feign;

import com.usian.model.behavior.pojos.ApBehaviorEntry;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "leadnews-behavior")
@RequestMapping("/api/v1/behaviorEntry")
public interface ApBehaviorEntryFeign {

    @GetMapping("/findByUserIdOrEntryId")
    public ApBehaviorEntry findByUserIdOrEntryId(@RequestParam Integer userId,
                                                 @RequestParam(required = false) Integer equipmentId);
}
